﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="GamePlayWayManager.aspx.cs"
    Inherits="LotteryVote.GamePlayWayManager" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div style="color: Red">
        <asp:Literal ID="ltl_message" runat="server"></asp:Literal>
    </div>
    <fieldset>
        <legend>GameType</legend>GameID:<asp:TextBox ID="txt_gameId" runat="server"></asp:TextBox>
        GameTypeName:<asp:TextBox ID="txt_gameName" runat="server"></asp:TextBox>
        Description:<asp:TextBox ID="txt_gameDesc" runat="server"></asp:TextBox>
        <br />
        <asp:Button ID="btn_addGameType" runat="server" Text="Add" 
            onclick="btn_addGameType_Click" />
        <asp:Button ID="btn_updateGameType" runat="server" Text="Update" 
            onclick="btn_updateGameType_Click" />
        <asp:Button ID="btn_deleteGameType" runat="server" Text="Delete" 
            onclick="btn_deleteGameType_Click" />
    </fieldset>
    <fieldset>
        <legend>PlayWay</legend>WayID:<asp:TextBox ID="txt_wayId" runat="server"></asp:TextBox>
        WayName:<asp:TextBox ID="txt_wayName" runat="server"></asp:TextBox>
        Description:<asp:TextBox ID="txt_wayDesc" runat="server"></asp:TextBox>
        <br />
        <asp:Button ID="btn_addPlayWay" runat="server" Text="Add" 
            onclick="btn_addPlayWay_Click" />
        <asp:Button ID="btn_updatePlayWay" runat="server" Text="Update" 
            onclick="btn_updatePlayWay_Click" />
        <asp:Button ID="btn_deletePlayWay" runat="server" Text="Delete" 
            onclick="btn_deletePlayWay_Click" />
    </fieldset>
    <fieldset>
        <legend>GamePlayWay</legend>
        <div>
            游戏类型:<asp:DropDownList ID="ddl_gameType" runat="server">
            </asp:DropDownList>
            方法种类:<asp:DropDownList ID="ddl_palyWay" runat="server">
            </asp:DropDownList>
            <br />
            <asp:Button ID="btn_GetAll" runat="server" Text="GetAll" OnClick="btn_GetAll_Click" />
            <asp:Button ID="btn_GetByGameType" runat="server" Text="GetByGameType" OnClick="btn_GetByGameType_Click" />
            <asp:Button ID="btn_add" runat="server" Text="Add" OnClick="btn_add_Click" />
            <asp:Button ID="btn_del" runat="server" Text="Del" OnClick="btn_del_Click" />
        </div>
        <asp:DataList ID="dl_GamePlayWay" runat="server" RepeatDirection="Horizontal">
            <ItemTemplate>
                <asp:Label ID="lbl_header" runat="server" Text='<%#Eval("Key.GameName") %>'></asp:Label>
                <asp:GridView ID="gv_content" runat="server" DataSource='<%#Eval("Value") %>' AutoGenerateColumns="true">
                </asp:GridView>
            </ItemTemplate>
        </asp:DataList>
        <asp:GridView ID="gv_playWay" runat="server" AutoGenerateColumns="true">
        </asp:GridView>
    </fieldset>
    <fieldset>
        <legend>SupportGamePlayWay</legend>GamePlayWay:<asp:DropDownList ID="ddl_gameplayWay"
            runat="server">
        </asp:DropDownList>
        CompanyType:<asp:DropDownList ID="ddl_companyType" runat="server">
        </asp:DropDownList>
        <br />
        <asp:Button ID="btn_AddSupport" runat="server" Text="Add" OnClick="btn_AddSupport_Click" />
        <asp:Button ID="btn_RemoveSupport" runat="server" Text="Remove" OnClick="btn_RemoveSupport_Click" />
        <asp:Button ID="btn_GetSupport" runat="server" Text="GetByCompanyType" OnClick="btn_GetSupport_Click" />
        <br />
        <asp:DataList ID="dl_support" runat="server" RepeatDirection="Horizontal">
            <ItemTemplate>
                <asp:Label ID="lbl_header" runat="server" Text='<%#Eval("Key.GameName") %>'></asp:Label>
                <asp:GridView ID="gv_content" runat="server" DataSource='<%#Eval("Value") %>' AutoGenerateColumns="true">
                </asp:GridView>
            </ItemTemplate>
        </asp:DataList>
    </fieldset>
    </form>
</body>
</html>
